package com.WOWTradeNews.phone;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

import com.WOWTradeNewsTest.R;

public class ReCountryDetail extends Activity {
	private String content;
	private String title;
	private TextView titleView;
	private TextView contentView;
	private Button backButton;
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.country_detail);
        
        titleView = (TextView) findViewById(R.id.cty_detail_title);
        contentView = (TextView) findViewById(R.id.cty_detail_content);
        
        backButton = (Button) findViewById(R.id.back);
        backButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
			}
		});
        
        Bundle bundle = this.getIntent().getExtras();
        content = bundle.getString("content");
        title = bundle.getString("title");
        
        titleView.setText(title);
        contentView.setText(content);
	}
	
	
}
